/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package negocio;

import controladores.ProgramaFacadeLocal;
import entidades.Programa;
import javax.annotation.Resource;
import javax.ejb.EJB;
import javax.ejb.EJBContext;
import javax.ejb.Stateless;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManagementType;
import javax.transaction.UserTransaction;

/**
 *
 * @author BATAQUERO
 */
@Stateless(mappedName = "ProgramaEJB")
@TransactionManagement(TransactionManagementType.BEAN)
public class ProgramaSrv implements ProgramaInterface{
    //Importante cargar el resource  dado que sin este no hay conexion para la persistencia
    @Resource
    private EJBContext context;
    private UserTransaction utx;
    @EJB
    private ProgramaFacadeLocal programaFacadeLocal;

    @Override
    public Programa consultarPrograma(Integer idPrograma) {
        System.out.println("----no se ha implementado este metodo-------");
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
    
}
